<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title><?php echo $view_title?></title>
	<link rel=stylesheet href='./template/<?php echo $OJ_TEMPLATE?>/<?php echo isset($OJ_CSS)?$OJ_CSS:"hoj.css" ?>' type='text/css'>
</head>
<body>

	<?php require_once("oj-header.php");?>
<div id="wrapper">
<div id=main>
<script type="text/javascript" src="include/jquery-latest.js"></script> 
<script type="text/javascript" src="include/jquery.tablesorter.js"></script> 



<center>
<div class="row">
<div class="pull-left">
<ul class="pagination problem-pagination">
     <?php
    for ($i=1;$i<=$view_total_page;$i++){
		if ($i>1) echo '&nbsp;';
		if ($i==$page)echo "<li  class='active'><a href='problemset.php?page=".$i."'>".$i."</a></li>";
		else echo "<li><a href='problemset.php?page=".$i."'>".$i."</a></li>";
	}
    ?>
</ul>
</div>
<div class="pull-right">
              <form class="form-search" role="form" action="problemset.php">

                  <label class="sr-only" for="text">搜索题目</label>
                  <input placeholder="按回车搜索" name="search" id="text" class="form-control"/>

              </form>
</div>
</div>



  

	<table id='problemset' width='100%'class='table table-striped table-condensed'>
                <thead>

                          <tr class='toprow'>
                            <th width='5'></th>
                          	<th width='120'><?php echo $MSG_PROBLEM_ID?></th>
                            <th><?php echo $MSG_TITLE?></th>
                            <th width='10%'>标签</th>
                            <th style="cursor:hand" width=60 ><?php echo $MSG_AC?></th>
                            <th style="cursor:hand" width=60 ><?php echo $MSG_SUBMIT?></th>
                          </tr>
                </thead>

		  
			<tbody>
			<?php 
			$cnt=0;
			foreach($view_problemset as $row){
				if ($cnt) 
					echo "<tr class='oddrow'>";
				else
					echo "<tr class='evenrow'>";
				foreach($row as $table_cell){
					echo "<td>";
					echo "\t".$table_cell;
					echo "</td>";
				}
				
				echo "</tr>";
				
				$cnt=1-$cnt;
			}
			?>
			</tbody>
			</table></center>
<div id=foot>
	<?php require_once("oj-footer.php");?>

</div><!--end foot-->
</div><!--end main-->
</div><!--end wrapper-->
</body>
</html>
